<template>
    <router-view v-slot="{ Component, route }" :include="['modelEdit']">
      <!-- 只有名称为modelEdit的组件会被<keep-alive>缓存 -->
        <!-- keep-alive 用于保留组件状态或避免重新渲染 -->
      <keep-alive>
        <component v-if="route.meta.keepAlive" :is="Component" />
      </keep-alive>
      <component v-if="!route.meta.keepAlive" :is="Component" />
    </router-view>
  </template>
  